<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>WewinPrintService</title>
</head>

<body>
    
    <input type="button" value="标签1(1001)" onclick="print1001();" />

    <script type="text/javascript" src="./labelimage/static/jquery.min.js"></script>
    <script type="text/javascript" src="./labelimage/static/all.jquery.js"></script>
    <script type="text/javascript" src="./labelimage/static/WewinPrintService.js"></script>
    <script type="text/javascript" src="./code.js"></script>
    <script>
        
        function print1001() {
            //json方式
            var json = [
                {"EntityTypeId":"1001","Code":"123456789012345678","Text":["市辖区合肥市粉红色","华夏银行股份有限公司成都天府新区支行","张三/李四"]}
				,
				 {"EntityTypeId":"1001","Code":"1234567890123456789","Text":["市辖区合肥市粉红色","华夏银行股份有限公司成都天府新区支行","张三/李四"]}
            ];
            // //xml 方式
            // var xml = "<?xml version=\"1.0\" encoding=\"utf-8\" ?><Data><Print><EntityTypeId>1001</EntityTypeId><Code>123456789</Code><Text>123456789012345678</Text><Text>市辖区合肥市粉红色</Text><Text>华夏银行股份有限公司成都天府新区支行</Text><Text>张三/李四</Text></Print></Data>";
            wewin.LabelPrint(json);
        }
                            
    </script>
</body>

</html>